<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php $this->load->view('admin/header.html')?>
<div id="dcMain">
    <!-- 当前位置 -->
    <div id="urHere">
        DouPHP 管理中心
        <b>></b>
        <strong>首页设置</strong>
    </div>
    <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <link rel="stylesheet" href="<?php echo base_url('common/home')?>/css/style.css" />
        <script type="text/javascript" src="<?php echo base_url('common/home')?>/js/myjs.js"></script>
        <div class="line3"></div>
        <div class="h103">
            <div class="w1200">
                <!--登录和搜索 begin-->
                <div class="h19 fr">
                    <!--登录 begin-->
                    <div class="login fl">
                        <a class="reg fl" href="">注册</a>
                        <div class="goLogin fl"><a href="">索特会员登录</a></div>
                    </div>

                    <div class="search fl">
                        <form action="">
                            <input class="searchTxt fl" type="text" placeholder="请输入关键词" />
                            <input class="searchBtn fl" type="submit" />
                        </form>
                    </div>
                    <!--登录 end-->
                </div>
                <!--登录和搜索 end-->

                <div class="clear"></div>

                <!--logo begin-->
                <img class="logo fl" src="<?php echo !empty($config_model)?$config_model->sitelogo:''?>" width="452" height="84" alt="" />
                <!--logo end-->
                <!--导航 begin-->
                <div class="nav fl">
                    <ul class="nav1">
                        <li class="cur"><a target="_blank" href="<?php echo site_url()?>">首页</a></li>
                        <?php foreach($top_menu_list as $top_menu_list_item):?>
                        <li>
                            <a target="_blank" href="<?php echo $top_menu_list_item->page_url?>"><?php echo $top_menu_list_item->title?></a>
                            <?php if($top_menu_list_item->child==1 && $top_menu_list_item->isdrop==1):?>
                            <ul class="nav2">
                                <?php foreach($top_menu_list_item->child_list as $top_menu_list_item_childs_item):?>
                                <li><a target="_blank" href="<?php echo $top_menu_list_item_childs_item->page_url?>"><?php echo $top_menu_list_item_childs_item->title?></a></li>
                                <?php endforeach;?>
                               
                            </ul>
                            <?php endif;?>
                        </li>
                        <?php endforeach;?>
                    </ul>
                </div>
                <!--导航 end-->
            </div>
        </div>

        <!--banner begin-->
        <div class="banner">
            <div class="pics">
                <ul>
                    <?php foreach($banner_list as $banner_item):?>
                    <li style="background: url(<?php echo $banner_item->imgurl?>) no-repeat center center"></li>
                    <?php endforeach;?>
                </ul>
            </div>

            <div class="dots">
                <ul>
                    <?php foreach($banner_list as $banner_item):?>
                    <li <?php echo $banner_item->bid==reset($banner_list)->bid?'class="curr"':''?>>&nbsp;</li>
                    <?php endforeach;?>
                </ul>
            </div>

            <a class="left" href="javascript:void(0);"></a>
            <a class="right" href="javascript:void(0);"></a>
        </div>
        <!--banner end-->

        <script type="text/javascript">
            function edit_home(obj) {
                //alert($(one).find('.w363Mask').html());
               // alert($(obj).find('#website_id').val());
                var website_id = $(obj).find('#website_id').val()
                var website_type = $(obj).find('#website_type').val()
                var weight = $(obj).find('#weight').val()
                var menuid = $(obj).find('#menuid').val()
                url = "<?php echo site_url('admin/website/edit_home')?>?websiteid=" + website_id + "&website_type=" + website_type + "&weight=" + weight + "&menuid=" + menuid;
                layer.open({
                    type: 2,
                    title: '栏目添加',
                    maxmin: true,
                    shadeClose: false,
                    area: ['630px', '500px'],
                    offset: ['100px', ''],
                    content: url,
                });
            }
            function Success(data) {
                $.Success(data);

            }
        </script>
        <!--三大块 begin-->
        <div class="block3">
            <div class="divs">
                <a class="w363" href="javascript:void(0)" onclick="edit_home(this)">
                    <input type="hidden" value="<?php echo !empty($up_first_website_model)?$up_first_website_model->website_id:0?>" id="website_id" />
                    <input type="hidden" value="<?php echo !empty($up_first_website_model)?$up_first_website_model->website_type:0?>" id="website_type" />
                    <input type="hidden" value="<?php echo !empty($up_first_website_model)?$up_first_website_model->weight:1?>" id="weight" />
                    <input type="hidden" value="<?php echo !empty($up_first_website_model)?$up_first_website_model->menuid:0?>" id="menuid" />
                    <img src="<?php echo !empty($up_first_website_model)?$up_first_website_model->imgurl:""?>" width="363" height="144" alt="" />
                    <div class="w363Mask">
                        <?php echo !empty($up_first_website_model)?$up_first_website_model->title:""?><br /><span><?php echo !empty($up_first_website_model)?$up_first_website_model->eng_title:""?></span>
                    </div>
                </a>
            </div>

            <div class="divs">
                <a class="w363" href="javascript:void(0)" onclick="edit_home(this)" >
                    <input type="hidden" value="<?php echo !empty($up_second_website_model)?$up_second_website_model->website_id:0?>" id="website_id" />
                    <input type="hidden" value="<?php echo !empty($up_second_website_model)?$up_second_website_model->website_type:0?>" id="website_type" />
                    <input type="hidden" value="<?php echo !empty($up_second_website_model)?$up_second_website_model->weight:2?>" id="weight" />
                    <input type="hidden" value="<?php echo !empty($up_second_website_model)?$up_second_website_model->menuid:0?>" id="menuid" />
                    <img src="<?php echo !empty($up_second_website_model)?$up_second_website_model->imgurl:""?>" width="363" height="144" alt="" />
                    <div class="w363Mask">
                        <?php echo !empty($up_second_website_model)?$up_second_website_model->title:""?><br /><span><?php echo !empty($up_second_website_model)?$up_second_website_model->eng_title:""?></span>
                    </div>
                </a>
            </div>

            <div class="divs">
                <a class="w363" href="javascript:void(0)" onclick="edit_home(this)">
                    <input type="hidden" value="<?php echo !empty($up_third_website_model)?$up_third_website_model->website_id:0?>" id="website_id" />
                    <input type="hidden" value="<?php echo !empty($up_third_website_model)?$up_third_website_model->website_type:0?>" id="website_type" />
                    <input type="hidden" value="<?php echo !empty($up_third_website_model)?$up_third_website_model->weight:3?>" id="weight" />
                    <input type="hidden" value="<?php echo !empty($up_third_website_model)?$up_third_website_model->menuid:0?>" id="menuid" />
                    <img src="<?php echo !empty($up_third_website_model)?$up_third_website_model->imgurl:""?>" width="363" height="144" alt="" />
                    <div class="w363Mask">
                        <?php echo !empty($up_third_website_model)?$up_third_website_model->title:""?><br /><span><?php echo !empty($up_third_website_model)?$up_third_website_model->eng_title:""?></span>
                    </div>
                </a>
            </div>
        </div>
        <!--三大块 end-->
        <!--四大块 begin-->
        <div class="block4">
            <div class="div4">
                <a class="w267" href="javascript:void(0)" onclick="edit_home(this)">
                    <input type="hidden" value="<?php echo !empty($down_first_website_model)?$down_first_website_model->website_id:0?>" id="website_id" />
                    <input type="hidden" value="<?php echo !empty($down_first_website_model)?$down_first_website_model->website_type:1?>" id="website_type" />
                    <input type="hidden" value="<?php echo !empty($down_first_website_model)?$down_first_website_model->weight:1?>" id="weight" />
                    <input type="hidden" value="<?php echo !empty($down_first_website_model)?$down_first_website_model->menuid:0?>" id="menuid" />
                    <img src="<?php echo !empty($down_first_website_model)?$down_first_website_model->imgurl:""?>" width="267" height="220" alt="" />
                    <div class="w267Mask"><?php echo !empty($down_first_website_model)?$down_first_website_model->title:""?></div>
                </a>
            </div>

            <div class="div4">
                <a class="w267" href="javascript:void(0)" onclick="edit_home(this)">
                    <input type="hidden" value="<?php echo !empty($down_second_website_model)?$down_second_website_model->website_id:0?>" id="website_id" />
                    <input type="hidden" value="<?php echo !empty($down_second_website_model)?$down_second_website_model->website_type:1?>" id="website_type" />
                    <input type="hidden" value="<?php echo !empty($down_second_website_model)?$down_second_website_model->weight:2?>" id="weight" />
                    <input type="hidden" value="<?php echo !empty($down_second_website_model)?$down_second_website_model->menuid:0?>" id="menuid" />
                    <img src="<?php echo !empty($down_second_website_model)?$down_second_website_model->imgurl:""?>" width="267" height="220" alt="" />
                    <div class="w267Mask"><?php echo !empty($down_second_website_model)?$down_second_website_model->title:""?></div>
                </a>
            </div>

            <div class="div4">
                <a class="w267" href="javascript:void(0)" onclick="edit_home(this)">
                    <input type="hidden" value="<?php echo !empty($down_third_website_model)?$down_third_website_model->website_id:0?>" id="website_id" />
                    <input type="hidden" value="<?php echo !empty($down_third_website_model)?$down_third_website_model->website_type:1?>" id="website_type" />
                    <input type="hidden" value="<?php echo !empty($down_third_website_model)?$down_third_website_model->weight:3?>" id="weight" />
                    <input type="hidden" value="<?php echo !empty($down_third_website_model)?$down_third_website_model->menuid:0?>" id="menuid" />
                    <img src="<?php echo !empty($down_third_website_model)?$down_third_website_model->imgurl:""?>" width="267" height="220" alt="" />
                    <div class="w267Mask"><?php echo !empty($down_third_website_model)?$down_third_website_model->title:""?></div>
                </a>
            </div>

            <div class="div4">
                <a class="w267" href="javascript:void(0)" onclick="edit_home(this)">
                    <input type="hidden" value="<?php echo !empty($down_four_website_model)?$down_four_website_model->website_id:0?>" id="website_id" />
                    <input type="hidden" value="<?php echo !empty($down_four_website_model)?$down_four_website_model->website_type:1?>" id="website_type" />
                    <input type="hidden" value="<?php echo !empty($down_four_website_model)?$down_four_website_model->weight:4?>" id="weight" />
                    <input type="hidden" value="<?php echo !empty($down_four_website_model)?$down_four_website_model->menuid:0?>" id="menuid" />
                    <img src="<?php echo !empty($down_four_website_model)?$down_four_website_model->imgurl:""?>" width="267" height="220" alt="" />
                    <div class="w267Mask"><?php echo !empty($down_four_website_model)?$down_four_website_model->title:""?></div>
                </a>
            </div>
        </div>
        <!--四大块 end-->
        <!--底部 begin-->
        <div class="footer">
            <div class="footer1200">
                <img class="logoFooter fl" src="<?php echo base_url('common/home')?>/img/logoFooter.jpg" width="343" height="46" alt="秦皇岛市索特磨具制造有限公司" />
                <div class="w520 fl">
                    地址：<?php echo !empty($contact_model)?$contact_model->address:''?>电话：<?php echo !empty($contact_model)?$contact_model->tel:''?> 传真：<?php echo !empty($contact_model)?$contact_model->fax:''?><br />
                    <?php echo !empty($config_model)?$config_model->copyright:''?>
                    <!--Copyright  ©  2016秦皇岛市索特磨具制造有限公司 All rights reserved-->
                </div>
                <div class="w190 fr">技术支持：巨晖软件<br /><?php echo !empty($config_model)?$config_model->icp:''?></div>
            </div>
        </div>
        <!--底部 end-->
    </div>
</div>